namespace Cos.Core.NHibernate
{
    using System;
    using Cos.Core.Model.Blog;

    public class CommentDataModel : DataModelBase<Comment>
    {
        public CommentDataModel() {}

        public virtual int ArticleCultureId { get; set; }

        public virtual string AuthorFirstName { get; set; }

        public virtual string AuthorId { get; set; }

        public virtual string AuthorLastName { get; set; }

        public virtual int Id { get; set; }

        public virtual DateTime CreationDate { get; set; }

        public virtual DateTime LastModified { get; set; }

        public virtual string Text { get; set; }

        public virtual string Title { get; set; }


        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as CommentDataModel;

            return model != null && this.Id == model.Id;
        }

        public override int GetHashCode()
        {
            return this.Id.GetHashCode();
        }

        public override void Fill(Comment model)
        {
            throw new NotImplementedException();
        }

        public override Comment ToModel()
        {
            throw new NotImplementedException();
        }
    }
}